import { getAgentsList } from "@/api/agents";
const state = {
    agentList: null,
};
const mutations = {
    setAgent(state, data) {
        state.agentList = data;
    },
};
const actions = {
    async getAgent(store, data) {
        const res = await getAgentsList(data);
        store.commit("setAgent", res);
    },
};

export default {
    namespaced: true,
    state,
    mutations,
    actions,
};